﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="phone_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
	<script language="javascript" type="text/javascript" src="js/uboxweb.js"></script>
	<script language="javascript" type="text/javascript" for="Phonic_usb" event="PlugIn(uboxHandle)">  
   
	Ubox_Plug_In(uboxHandle)
		
	</script>
	<script language="javascript" type="text/javascript" for="Phonic_usb" event="HookOff(uboxHandle)">  
	  Ubox_hookoff(uboxHandle)

	
	</script>
	<script language="javascript" type="text/javascript" for="Phonic_usb" event="HangUp(uboxHandle)">  
   //alert("电话挂机")
   Ubox_hookon(uboxHandle)
		
	</script>
	<script language="javascript" type="text/javascript" for="Phonic_usb" event="CallId(uboxHandle,callerNumber,callerTime,callerName)">  
	// alert("callID")
	Ubox_CallIdx(uboxHandle,callerNumber,callerTime,callerName)
		
	</script>
	<script language="javascript" type="text/javascript" for="Phonic_usb" event="DeviceAlarm(uboxHandle)">  
   
	//PhonicusbControl_OnPLugIn(uboxHandle)
	ubox_DeviceAlarm(uboxHandle)
		
	</script>
	<script language="javascript" type="text/javascript" for="Phonic_usb" event="DeviceError(uboxHandle)">  
   
	//PhonicusbControl_OnPLugIn(uboxHandle)
	//alert("电话挂机")
	ubox_DeviceError(uboxHandle)
		
	</script>
	<script language="javascript" type="text/javascript" for="Phonic_usb" event="DtmfKey(uboxHandle,dtmfCode)">  
	
	ubox_DtmfKey(uboxHandle,dtmfCode)
		
	</script>
	<script language="javascript" type="text/javascript" for="Phonic_usb" event="HangIng(uboxHandle)">  
   
	 ubox_HangIng(uboxHandle)
	//alert("电话挂机")
		
	</script>
	 
	<script language="javascript" type="text/javascript" for="Phonic_usb" event="PlayEnd(uboxHandle)">  
   
	ubox_PlayEnd(uboxHandle)
		
	</script>
	<script language="javascript" type="text/javascript" for="Phonic_usb" event="PlayError(uboxHandle)">  
   
	
	//alert("电话挂机")
	ubox_PlayError(uboxHandle)
		
	</script>
	<script language="javascript" type="text/javascript" for="Phonic_usb" event="PlugOut(uboxHandle)">  
   
	ubox_PlugOut(uboxHandle)
		
	</script>
	<script language="javascript" type="text/javascript" for="Phonic_usb" event="Ring(uboxHandle)">  
   

	ubox_Ring(uboxHandle)
		
	</script>
	<script language="javascript" type="text/javascript" for="Phonic_usb" event="RingCancel(uboxHandle)">  
   

	ubox_RingCancel(uboxHandle)
		
	</script>
	<script language="javascript" type="text/javascript" for="Phonic_usb" event="RingStop(uboxHandle)">  
   

	ubox_RingStop(uboxHandle)
		
	</script>
	<script language="javascript" type="text/javascript" for="Phonic_usb" event="ToneBusy(uboxHandle)">  
   

	ubox_ToneBusy(uboxHandle)
		
	</script>
	 
	<script language="JavaScript" type="text/javascript" for="window" event="onLoad()">
<!--
//Phonic_usb.OpenLogFile(0);
ubox_CloseDevice();
ubox_openDevice(0);
-->
	</script>
	<script language="JavaScript" type="text/javascript" for="window" event="onunLoad()">
<!--
ubox_CloseDevice();
Phonic_usb.CloseLogFile();
-->
	</script>
	<script type="text/javascript" language="JavaScript">
		function Ubox_CallIdx(uboxHandle, callerNumber, callerTime, callerName) {

			window.open('getnumber.aspx?tel=' + callerNumber + '&t=' + callerTime);
			var outdata = "设备" + uboxHandle + "号码：" + callerNumber + "时间：" + callerTime;

			AppendStatus(outdata);

		}
	</script>
</head>
<body>
	<textarea id="StatusArea" rows="13" name="S1" cols="86"></textarea>
	<object id="Phonic_usb" width="" height="" classid="CLSID:BB4780D9-391E-41B5-B366-434ADCFD7D10">
	</object>
	 

	<form id="form1" runat="server">
	<div>
	</div>
	</form>
</body>
</html>
